#!/bin/bash

### This script will execute the R files to make yearly measures of extreme events
### Written for Climate, Disasters, and Human Responses project
### Aiden Jönsson, 30 September 2019

## Make yearly magnitude records for the minimum temperature extremes
Rscript MakeYearlyRecord_tmin_pctl02.r
Rscript MakeYearlyRecord_tmin_pctl07.r
Rscript MakeYearlyRecord_tmin_pctl16.r

## Make yearly magnitude records for the maximum temperature extremes
Rscript MakeYearlyRecord_tmax_pctl84.r
Rscript MakeYearlyRecord_tmax_pctl93.r
Rscript MakeYearlyRecord_tmax_pctl98.r

## Move finished data to the storage directory
mv CDHR2019* SOME_STORAGE_DIR

